package com.cskaoyan.bean.wx.home.vo;

import com.cskaoyan.bean.wx.home.WXAd;
import lombok.Data;
import net.sf.jsqlparser.util.validation.metadata.DatabaseException;

import java.util.Date;

/**
 * 创建日期: 2022/05/08 11:56
 *
 * @author JinLu Zhou
 */
@Data
public class BannerVo {
    Date addTime;
    String content;
    Boolean deleted;
    Boolean enabled;
    Integer id;
    String link;
    String name;
    Byte position;
    Date updateTime;
    String url;

    public void set(WXAd wxAd) {
        setAddTime(wxAd.getAddTime());
        setContent(wxAd.getContent());
        setDeleted(wxAd.getDeleted());
        setEnabled(wxAd.getEnabled());
        setId(wxAd.getId());
        setLink(wxAd.getLink());
        setName(wxAd.getName());
        setPosition(wxAd.getPosition());
        setUpdateTime(wxAd.getUpdateTime());
        setUrl(wxAd.getUrl());
    }
}
